function data=threhold(data, T)
    data(data > T) = T;
    data(data < -T) = -T;
end
